[wpn_mp5]:weapon_probability,default_weapon_params,wpn_mp5_sounds
GroupControlSection                      = spawn_group
$npc                                     = on
$prefetch                                = 8
$spawn                                   = "weapons\mp5"
scheduled                                = off
cform                                    = skeleton
parent_section                           = wpn_mp5

class                                    = WP_LR300
slot                                     = 2
animation_slot                           = 8
ef_main_weapon_type                      = 2
ef_weapon_type                           = 6
hand_dependence                          = 1
single_handed                            = 0

default_to_ruck                          = false
sprint_allowed                           = true


inv_grid_width     = 3
inv_grid_height    = 1
inv_grid_x         = 14
inv_grid_y         = 17

inv_name                                 = str_wpn_mp5
inv_name_short                           = str_wpn_mp5
description                              = str_wpn_mp5_descr

kind                                     = w_smg
inv_weight                               = 2.5
cost                                     = 3600
repair_type                              = weapon
weapon_class                             = assault_rifle
tier									 = 2

hud                                      = wpn_mp5_hud
visual									 = dynamics\weapons\wpn_mp5\wpn_mp5.ogf
position                                 = -0.026, -0.125, -0.03
orientation                              = 0, -10, 0
fire_point                               = 0.0, 0.188, 0.392
fire_point2                              = 0.0, 0.188, 0.392
strap_bone0                              = bip01_spine2
strap_bone1                              = bip01_spine1
strap_position                           = -0.16, -0.36, 0.15
strap_orientation                        = -10, -5, 10
ph_mass                                  = 3

flame_particles                          = weapons\generic_weapon03
smoke_particles                          = weapons\generic_shoot_00
grenade_flame_particles                  = weapons\generic_weapon01

shell_point					             = 0.0, 0.188, 0.082
shell_dir					             = 0.0, 1.0, 0.0
shell_particles	 			             = weapons\9x19

light_disabled                           = false
light_color                              = 0.6, 0.5, 0.3
light_range                              = 5
light_time                               = 0.2
light_var_color                          = 0.05
light_var_range                          = 0.5

upgrades                                 = up_gr_firstab_mp5, up_gr_seconab_mp5, up_gr_thirdab_mp5, up_gr_fourtab_mp5, up_gr_fifthab_mp5, up_gr_fifthcd_mp5
installed_upgrades                       =
upgrade_scheme                           = upgrade_scheme_mp5

upgr_icon_height                                   = 115
upgr_icon_width                                    = 270
upgr_icon_x                                        = 261
upgr_icon_y                                        = 1022

fire_modes                               = 1, -1
ammo_class                               = ammo_9x19_fmj, ammo_9x19_pbp
ammo_elapsed                             = 30
ammo_mag_size                            = 30
startup_ammo                             = 90

scopes                                   = acog
scopes_sect							 	 = scope_mp5_green
scope_status                             = 2
scope_zoom_factor                        = 0

silencer_name                            = wpn_addon_silencer
silencer_status                          = 0
silencer_x                                         = 135
silencer_y                                         = -15
silencer_light_color                     = 0.6, 0.5, 0.3
silencer_light_range                     = 0.01
silencer_light_time                      = 0.2
silencer_light_var_color                 = 0.05
silencer_light_var_range                 = 0.5
silencer_smoke_particles                 = weapons\generic_shoot_00

grenade_class                            = ammo_vog-25
grenade_launcher_name                    = wpn_addon_grenade_launcher
grenade_launcher_status                  = 0
grenade_launcher_x                       = 126
grenade_launcher_y                       = 24
launch_speed                             = 0

hit_power            = 0.35, 0.35, 0.35, 0.35
hit_impulse          = 100    ; size of physic impulse by bullet

hit_type                                 = fire_wound
fire_distance                            = 400
bullet_speed                             = 402
rpm                                      = 600
rpm_empty_click                          = 200
ap_modifier                              = 1.1

use_aim_bullet                           = true
time_to_aim                              = 0.0 ;  3.0
zoom_dof                                 = 0.5, 1.0, 180
zoom_enabled                             = true
zoom_rotate_time                         = 0.25
reload_dof                               = 0.0, 0.5, 5, 2


misfire_probability        = 0.005 ;вероятность осечки при максимальном износе  !!!old - now not working
;изношенность, при которой появляется шанс осечки
misfire_start_condition		= 0.6
;изношеность при которой шанс осечки становится константным
misfire_end_condition		= 0.1
;шанс осечки при изношености больше чем misfireStartCondition
misfire_start_prob	     	= 0.004
;шанс осечки при изношености больше чем misfireEndCondition
misfire_end_prob	     	= 0.057
;увеличение изношености при одиночном выстреле
condition_shot_dec      	= 0.0006
;увеличение изношености при выстреле очередью
condition_queue_shot_dec	= 0.0007

;---дисперсия---------------------------------------------------------------------------
;базовая дисперсия
fire_dispersion_base    = 0.32  ;угол (в градусах) базовой дисперсии оружия (оружия зажатого в тисках)
control_inertion_factor = 1.1f
crosshair_inertion   	= 4.35

;отдача
cam_return			 = 0
cam_relax_speed      = 5		;скорость возврата в исходное положение
cam_relax_speed_ai   = 120.75
cam_dispersion       = 0.5		;увеличения угла (в градусах) с каждым выстрелом
cam_dispersion_inc   = 0.25		;увеличениe cam_dispersion с каждым выстрелом
cam_dispersion_frac  = 1.0		;ствол будет подыматься на cam_dispersion*cam_dispersion_frac +- cam_dispersion*(1-cam_dispersion_frac)
cam_max_angle        = 50.0		;максимальный угол отдачи
cam_max_angle_horz   = 50.0		;(degree) maximum shot horizontal degree
cam_step_angle_horz  = 1.5		;(degree) size of step camera moved in horizontal position while shooting

PDM_disp_base 				= 0.5
PDM_disp_vel_factor 		= 1.5
PDM_disp_accel_factor 		= 1.5
PDM_disp_crouch	 			= 1.0
PDM_disp_crouch_no_acc 		= 1.0

zoom_cam_relax_speed        = 10    ; scope & ironsight
zoom_cam_relax_speed_ai     = 120.75
zoom_cam_dispersion         = 0.5
zoom_cam_dispersion_inc     = 0.25
zoom_cam_dispersion_frac    = 1.0
zoom_cam_max_angle          = 50.0
zoom_cam_max_angle_horz     = 50.0
zoom_cam_step_angle_horz    = 1.5

fire_dispersion_condition_factor = 9        ;увеличение дисперсии в процентах при максимальном износе


cam_relax_speed_ai                       = 120.75
zoom_cam_relax_speed_ai                  = 120.75
holder_fov_modifier                      = 1.0
holder_range_modifier                    = 1.0
min_radius                               = 0
max_radius                               = 500
hit_probability_gd_novice                = 1.00
hit_probability_gd_stalker               = 1.00
hit_probability_gd_veteran               = 1.00
hit_probability_gd_master                = 1.00

kill_msg_x                               = 72
kill_msg_y                               = 82
kill_msg_width                           = 56
kill_msg_height                          = 23


[wpn_mp5_hud]:hud_base
item_visual             = dynamics\weapons\wpn_mp5\wpn_mp5_hud.ogf
attach_place_idx                         = 0
zoom_hide_crosshair                      = true   

hands_position			= 0.08,-0.03,0.4
hands_orientation		= 2,2,0
hands_position_16x9		= 0.08,-0.03,0.4
hands_orientation_16x9	= 2,2,0

item_position 		= 0,-0.005,-0.006
item_orientation 	= 0,0,0

shell_point             = 0.021,0.099,0.286
shell_dir               = 0.0, 1.0, 0.0
shell_bone              = wpn_body

fire_point		= 0,0.068,0.439
fire_bone               = wpn_body
fire_point2		= -0.030000,0.074500,-0.037000
fire_bone2              = wpn_body

anm_show                = mp5_draw
anm_hide                = mp5_holster
anm_idle                = mp5_idle
anm_idle_sprint         = mp5_idle_sprint
anm_idle_moving         = mp5_idle_moving
anm_idle_moving_crouch	= mp5_idle_crouch
anm_shots               = mp5_shoot, shoot
anm_reload              = mp5_reload, reload
anm_reload_empty	= mp5_reload_empty, reload_empty
anm_idle_aim            = mp5_idle_aim
anm_bore                = mp5_idle_aim


aim_hud_offset_pos = -0.161500,0.047000,-0.200000
aim_hud_offset_rot = 0.016500,0.034600,0.000000

aim_hud_offset_pos_16x9 = -0.161500,0.047000,-0.200000
aim_hud_offset_rot_16x9 = 0.016500,0.034600,0.000000

gl_hud_offset_pos       	= 0,0,0
gl_hud_offset_rot       	= 0,0,0

gl_hud_offset_pos_16x9    	= 0,0,0
gl_hud_offset_rot_16x9    	= 0,0,0

lean_hud_offset_pos        = 0,0,0
lean_hud_offset_rot        = 0,0,0

lowered_hud_offset_pos					 = 0.145, 0.0, -0.06
lowered_hud_offset_pos_16x9				 = 0.145, 0.0, -0.06
lowered_hud_offset_rot					 = -0.05, -0.55, 0.4
lowered_hud_offset_rot_16x9				 = -0.05, -0.55, 0.4

[scope_mp5_green]
scope_name 					= acog_green
scope_x                     = 58		; offset in inventory icon
scope_y                     = -25

[wpn_mp5_acog]:wpn_mp5
1icon_layer                              = acog
1icon_layer_x                            = 58
1icon_layer_y                            = -25

inv_weight                               = 3

hud                                      = wpn_mp5_acog_hud

        scope_status                = 1
        scope_dynamic_zoom          = off
        scope_texture               = wpn_owa_crosshair_acog
        scope_zoom_factor           = 40
		scope_zoom_factor_alt           = 0

zoom_rotate_time                         = 0.25

[wpn_mp5_acog_hud]:wpn_mp5_hud,hud_low_interia
aim_hud_offset_pos                       = -0.08576, 0.02456, -0.32
aim_hud_offset_pos_16x9                  = -0.08576, 0.02456, -0.32
aim_hud_offset_rot                       = 0.042, 0.0349, 0.00095
aim_hud_offset_rot_16x9                  = 0.042, 0.0349, 0.00095


;-----------------------------------------------------------------------------
; Уникальные
;-----------------------------------------------------------------------------
; Пистолет-пулемет Heckler-Koch UMP-45
;-(TrickSR)-----------------------------------------
; калибр 							45acp
; длина ствола 						200 мм
; магазин							25
; вес без магазина					2.65
; максимальная дальность стрельбы	800 м
; эффективная дальность стрельбы	25-100 м
; прицельная дальность				---
; дульная скорость пули				400 м/с
; темп стрельбы						600 в/м
;---------------------------------------------------
[wpn_mp5_nimble]:wpn_mp5,wpn_mp5_nimble_sounds
$spawn 					= "weapons\wpn_mp5_nimble"		; option for Level Editor
inv_name				= str_wpn_mp5_nimble
description				= str_wpn_mp5_nimble_descr
parent_section 			= wpn_mp5_nimble

visual					= dynamics\weapons\wpn_mp5\wpn_mp5_nimble.ogf
hit_power				= 0.51, 0.51, 0.51, 0.51

inv_weight				= 2.65

cost					= 5000

ammo_elapsed				= 25
ammo_mag_size				= 25					; clip (magazine) size

fire_modes				= 1, 3, -1
silencer_status                          = 2

scope_name								 = 
scopes                                   = acog
scopes_sect							 	 = scope_mp5_nimble_green
scope_status                             = 2
scope_zoom_factor                        = 0

silencer_x                                         = 120
silencer_y                                         = -19

hud	= wpn_mp5_nimble_hud

ammo_class				= ammo_11.43x23_fmj, ammo_11.43x23_hydro

upgrades                                 = up_gr_firstab_mp5, up_gr_seconab_mp5, up_gr_thirdab_mp5, up_gr_fourtab_mp5
installed_upgrades                       =
upgrade_scheme                           = upgrade_scheme_mp5


fire_distance				= 1200					; maximum fire distance that bullet can fly
bullet_speed				= 476					; starting bullet speed
rpm						    = 800

fire_dispersion_base    = 0.26
cam_dispersion				= 0.75

inv_grid_width     = 3
inv_grid_height    = 1
inv_grid_x         = 33
inv_grid_y         = 39

upgr_icon_height                                   = 115
upgr_icon_width                                    = 270
upgr_icon_x                                        = 261
upgr_icon_y                                        = 1022

silencer_fire_distance 	= 450

shell_particles         = weapons\45acp

[wpn_mp5_nimble_hud]:hud_base
item_visual             = dynamics\weapons\wpn_mp5\wpn_mp5_nimble_hud.ogf
attach_place_idx                         = 0
zoom_hide_crosshair                      = true   

hands_position			= 0.08,-0.03,0.4
hands_orientation		= 2,2,0
hands_position_16x9		= 0.08,-0.03,0.4
hands_orientation_16x9	= 2,2,0

item_position 		= 0,-0.005,-0.006
item_orientation 	= 0,0,0

shell_point             = 0.021,0.099,0.286
shell_dir               = 0.0, 1.0, 0.0
shell_bone              = wpn_body

fire_point		= 0,0.068,0.439
fire_bone               = wpn_body
fire_point2		= -0.030000,0.074500,-0.037000
fire_bone2              = wpn_body

anm_show                = mp5_draw
anm_hide                = mp5_holster
anm_idle                = mp5_idle
anm_idle_sprint         = mp5_idle_sprint
anm_idle_moving         = mp5_idle_moving
anm_idle_moving_crouch	= mp5_idle_crouch
anm_shots               = mp5_shoot, shoot
anm_reload              = mp5_reload, reload
anm_reload_empty	= mp5_reload_empty, reload_empty
anm_idle_aim            = mp5_idle_aim
anm_bore                = mp5_idle_aim


aim_hud_offset_pos = -0.161500,0.047000,-0.200000
aim_hud_offset_rot = 0.016500,0.034600,0.000000

aim_hud_offset_pos_16x9 = -0.161500,0.047000,-0.200000
aim_hud_offset_rot_16x9 = 0.016500,0.034600,0.000000

gl_hud_offset_pos       	= 0,0,0
gl_hud_offset_rot       	= 0,0,0

gl_hud_offset_pos_16x9    	= 0,0,0
gl_hud_offset_rot_16x9    	= 0,0,0

lean_hud_offset_pos        = 0,0,0
lean_hud_offset_rot        = 0,0,0



[scope_mp5_nimble_green]
scope_name 					= acog_green
scope_x                     = 58		; offset in inventory icon
scope_y                     = -25

[wpn_mp5_nimble_acog]:wpn_mp5_nimble
1icon_layer                              = acog
1icon_layer_x                            = 58
1icon_layer_y                            = -25

inv_weight                               = 3

hud                                      = wpn_mp5_nimble_acog_hud

        scope_status                = 1
        scope_dynamic_zoom          = off
        scope_texture               = wpn_owa_crosshair_acog
        scope_zoom_factor           = 40
		scope_zoom_factor_alt           = 0

zoom_rotate_time                         = 0.25

[wpn_mp5_nimble_acog_hud]:wpn_mp5_nimble_hud,hud_low_interia